home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / ABBREV.ELC < prev    next >
Text File  |  1993-03-28  |  7KB  |  101 lines

  1. ;;; compiled by @win386 on Sat Mar 13 14:29:59 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/modes/abbrev.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (fset 'abbrev-mode #[(arg) "¼ä    ?¬à┬!├V─┼ !ç" [arg abbrev-mode prefix-numeric-value 0 set-buffer-modified-p buffer-modified-p] 2 "\
  14. Toggle abbrev mode.
  15. With arg, turn abbrev mode on iff arg is positive.
  16. In abbrev mode, inserting an abbreviation causes it to expand
  17. and be replaced by its expansion." "P"])
  18. (defvar edit-abbrevs-map nil "\
  19. Keymap used in edit-abbrevs.")
  20. (byte-code "¼Å┴ ┬├─#ê┬┼─#ê┴ç" [edit-abbrevs-map make-sparse-keymap define-key "" edit-abbrevs-redefine ""] 4)
  21. (fset 'kill-all-abbrevs #[nil "ë¡ì┬    @J!ê    Aë¼t├)ç" [abbrev-table-name-list tables clear-abbrev-table nil] 3 "\
  22. Undefine all defined abbrevs." nil])
  23. (fset 'insert-abbrevs #[nil "└è    ë½î├\n@─\"ê\nAë¼t)`)!ç" [push-mark abbrev-table-name-list tables insert-abbrev-table-description t] 5 "\
  24. Insert after point a description of all defined abbrevs.
  25. Mark is set after the inserted text." nil])
  26. (fset 'list-abbrevs #[nil "└┴ !ç" [display-buffer prepare-abbrev-list-buffer] 2 "\
  27. Display a list of all defined abbrevs." nil])
  28. (fset 'prepare-abbrev-list-buffer #[nil "è└┴!qê┬ ê ë½î┼ @╞\"ê Aë¼t)ebê╟╚!ê╔ ê)└┴!ç" [get-buffer-create "*Abbrevs*" erase-buffer abbrev-table-name-list tables insert-abbrev-table-description t set-buffer-modified-p nil edit-abbrevs-mode] 4])
  29. (fset 'edit-abbrevs-mode #[nil "└┬─!ç" [edit-abbrevs-mode major-mode "Edit-Abbrevs" mode-name use-local-map edit-abbrevs-map] 2 "\
  30. Major mode for editing the list of abbrev definitions.
  31. \\{edit-abbrevs-map}" nil])
  32. (fset 'edit-abbrevs #[nil "└┴ !ç" [switch-to-buffer prepare-abbrev-list-buffer] 2 "\
  33. Alter abbrev definitions by editing a list of them.
  34. Selects a buffer containing a list of abbrev definitions.
  35. You can edit them and type C-c C-c to redefine abbrevs
  36. according to your editing.
  37. Buffer contains a header line for each abbrev table,
  38.  which is the abbrev table name in parentheses.
  39. This is followed by one line per abbrev in that table:
  40. NAME   USECOUNT   EXPANSION   HOOK
  41. where NAME and EXPANSION are strings with quotes,
  42. USECOUNT is an integer, and HOOK is any valid function
  43. or may be omitted (it is usually omitted)." nil])
  44. (fset 'edit-abbrevs-redefine #[nil "└┴!ê┬├!ç" [define-abbrevs t set-buffer-modified-p nil] 2 "\
  45. Redefine abbrevs according to current buffer contents." nil])
  46. (fset 'define-abbrevs #[(&optional arg) "½â┴ êèebêm?¡┌┬├─┼#¡╙p╟!─    ╩yê╩yêl¼┤╟! ╟! ╟!╬─xêl?¡ä╟!╬─xê  F    B    ¬F╨    \"ê+¬\")ç" [arg kill-all-abbrevs re-search-forward "^(" nil t buf read table abbrevs 1 name count exp "     \n " hook define-abbrev-table] 4 "\
  47. Define abbrevs according to current visible buffer contents.
  48. See documentation of edit-abbrevs for info on the format of the
  49. text you must have in the buffer.
  50. With argument, eliminate all abbrev definitions except
  51. the ones defined from the buffer now." "P"])
  52. (fset 'read-abbrev-file #[(&optional file quietly) "└    ½ë    G┬V½â    ¬ü ─#ê╞─ëç" [load file 0 abbrev-file-name nil quietly t save-abbrevs abbrevs-changed] 4 "\
  53. Read abbrev definitions from file written with write-abbrev-file.
  54. Takes file name as argument.
  55. Optional second argument non-nil means don't print anything." "fRead abbrev file: "])
  56. (fset 'quietly-read-abbrev-file #[(&optional file) "└    ┬\"ç" [read-abbrev-file file t] 3 "\
  57. Read abbrev definitions from file written with write-abbrev-file.
  58. Takes file name as argument.  Does not print anything."])
  59. (fset 'write-abbrev-file #[(file) "½åG┴V¼é\nè├─!qê┼ êë½Å╚@╔\"êAë¼q)╩╦d#ê┼ )ç" [file 0 abbrev-file-name get-buffer-create " write-abbrev-file" erase-buffer abbrev-table-name-list tables insert-abbrev-table-description nil write-region 1] 5 "\
  60. Write all abbrev definitions to file of Lisp code.
  61. The file can be loaded to define the same abbrevs." (byte-code "└┴┬├ !! #Cç" [read-file-name "Write abbrev file: " file-name-directory expand-file-name abbrev-file-name] 5)])
  62. (fset 'add-mode-abbrev #[(arg) "└    ½â\n¬å «â─┼!╞#ç" [add-abbrev only-global-abbrevs global-abbrev-table local-abbrev-table error "No per-mode abbrev table." "Mode" arg] 4 "\
  63. Define mode-specific abbrev for last word(s) before point.
  64. Argument is how many words before point form the expansion;
  65. or zero means the region is the expansion.
  66. A negative argument means to undefine the specified abbrev.
  67. Reads the abbreviation in the minibuffer.
  68.  
  69. Don't use this function in a Lisp program; use define-abbrev instead." "p"])
  70. (fset 'add-global-abbrev #[(arg) "└    ┬ #ç" [add-abbrev global-abbrev-table "Global" arg] 4 "\
  71. Define global (all modes) abbrev for last word(s) before point.
  72. Argument is how many words before point form the expansion;
  73. or zero means the region is the expansion.
  74. A negative argument means to undefine the specified abbrev.
  75. Reads the abbreviation in the minibuffer.
  76.  
  77. Don't use this function in a Lisp program; use define-abbrev instead." "p"])
  78. (fset 'add-abbrev #[(table type arg) "┴Y¡Æ`┴U½ä┬ ¬çè[vê`){├╞╟½â╚¬ü╔\n#!½ö╦  \"½ì═╟╬ ╦  \"#!¡ç╧ ù#*ç" [arg 0 mark nil name exp read-string format "%s abbrev for \"%s\": " "Undefine %s abbrev: " type abbrev-expansion table y-or-n-p "%s expands to \"%s\"; redefine? " define-abbrev] 7])
  79. (fset 'inverse-add-mode-abbrev #[(arg) "└    ½â\n¬å «â─┼!╞#ç" [inverse-add-abbrev only-global-abbrevs global-abbrev-table local-abbrev-table error "No per-mode abbrev table." "Mode" arg] 4 "\
  80. Define last word before point as a mode-specific abbrev.
  81. With argument N, defines the Nth word before point.
  82. Reads the expansion in the minibuffer.
  83. Expands the abbreviation after defining it." "p"])
  84. (fset 'inverse-add-global-abbrev #[(arg) "└    ┬ #ç" [inverse-add-abbrev global-abbrev-table "Global" arg] 4 "\
  85. Define last word before point as a global (mode-independent) abbrev.
  86. With argument N, defines the Nth word before point.
  87. Reads the expansion in the minibuffer.
  88. Expands the abbreviation after defining it." "p"])
  89. (fset 'inverse-add-abbrev #[(table type arg) "└ëëè [vê`┼vê`ë{)╞╟╚     #!╩  \"½ì╠╟═ ╩  \"#!¡Å╬ ù    #êè\nbê╧ )+ç" [nil exp nameloc name arg 1 read-string format "%s expansion for \"%s\": " type abbrev-expansion table y-or-n-p "%s expands to \"%s\"; redefine? " define-abbrev expand-abbrev] 7])
  90. (fset 'abbrev-prefix-mark #[(&optional arg) "¼â┴ ê┬ p┼cç" [arg expand-abbrev point-marker abbrev-start-location abbrev-start-location-buffer "-"] 1 "\
  91. Mark current point as the beginning of an abbrev.
  92. Abbrev to be expanded starts here rather than at
  93. beginning of word.  This way, you can expand an abbrev
  94. with a prefix: insert the prefix, use this command,
  95. then insert the abbrev." "P"])
  96. (fset 'expand-region-abbrevs #[(start end &optional noquery) "èbêd    Z┬ëm?¡½╞vê`ëdZX¡ƒ╟è╚vê`) {ë!½b    ¼ê╩╦╠ \"!½V═ ê¬Q,ç" [start end nil string pnt lim 1 abbrev-expansion -1 noquery y-or-n-p format "Expand `%s'? " expand-abbrev] 4 "\
  97. For abbrev occurrence in the region, offer to expand it.
  98. The user is asked to type y or n for each occurrence.
  99. A numeric argument means don't query; expand all abbrevs.
  100. Calling from a program, arguments are START END &optional NOQUERY." "r\nP"])
  101.